package com.mingdinggroup.app.di.component;

import android.app.Application;

import com.google.gson.Gson;
import com.mingdinggroup.app.di.module.AppModule;
import com.mingdinggroup.app.di.module.HttpClientModule;
import com.mingdinggroup.app.util.ImageLoader;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.OkHttpClient;

/**
 * Created by jess on 8/4/16.
 */
@Singleton
@Component(modules = {AppModule.class, HttpClientModule.class})
public interface AppComponent {
    Application Application();



    OkHttpClient okHttpClient();

    //图片管理器,用于加载图片的管理类,默认使用glide,使用策略模式,可替换框架
    ImageLoader imageLoader();

    //gson
    Gson gson();


}
